/*** user API*/
const requstUtil = require("../../utils/requstUtil.js");
/**
 * path: /user/auth
 * description: 
 */
export function guetAuthUsingGET(params,token){
    return requstUtil.requstCommon(`/user/auth`, params, `get`,null,token)
}

/**
 * path: /user/info
 * description: 
 */
export function getUserInfoUsingGET(params,token){
    return requstUtil.requstCommon(`/user/info`, params, `get`,null,token)
}

/**
 * path: /user/login/username
 * description: 
 */
export function loginUsingPOST(data,token){
    return requstUtil.requstCommon(`/user/login/username`, null, `post`,data,token)
}

/**
 * path: /user/login/wx
 * description: 
 */
export function wxLoginUsingPOST(data,token){
    return requstUtil.requstCommon(`/user/login/wx`, null, `post`,data,token)
}

/**
 * path: /user/logout
 * description: 
 */
export function logoutUsingGET(params,token){
    return requstUtil.requstCommon(`/user/logout`, params, `get`,null,token)
}

/**
 * path: /user/register
 * description: 
 */
export function registerUsingPOST(data,token){
    return requstUtil.requstCommon(`/user/register`, null, `post`,data,token)
}

/**
 * path: /user/status
 * description: 
 */
export function loginStatusUsingGET(params,token){
    return requstUtil.requstCommon(`/user/status`, params, `get`,null,token)
}

/**
 * path: /user/update/userinfo
 * description: 
 */
export function updateUserInfoUsingPOST(data,token){
    return requstUtil.requstCommon(`/user/update/userinfo`, null, `post`,data,token)
}

/**
 * path: /api/auth/v2/tickets
 * description: 
 */
 export function getWelinkToken(data){
    return requstUtil.requstWelink(`/api/auth/v2/tickets`, null, `post`,data)
}

/**
 * path: /api/auth/v2/userid
 * description: 
 */
 export function getWelinkUserId(data){
    return requstUtil.requstWelink(`/api/auth/v2/userid`, null, `get`,data)
}

/**
 * path: /api/auth/v1/users
 * description: 
 */
 export function getWelinkUserInfo(data){
    return requstUtil.requstWelink(`/api/contact/v1/users`, null, `get`,data)
}